<div class="container-fluid" style="padding: 20px 10px 0px 10px">
	<div class="row-fluid">
		<div class="well">
		    <ul class="nav nav-tabs">
		      <li class="active"><b>添加幻灯</b></li>
		    </ul>
		    <div id="myTabContent" class="tab-content">
				<div class="tab-pane active in" id="home">
					<form id="formid" action="/index.php/slide/addslidev" method="post">
						<p>幻灯名称：<input type="text" value="<?=$slide['title']?>"" placeholder="" style="width:570px" name="title" type='text' class="checkname"></p>
						<p>排序字段：<input type="text" value="<?=$slide['sort']?>"" placeholder="" style="width:570px" name="sort" type='text' class="">
						<p><div id="setImd" style="display:inline">分类图片：<input type="text" name="pic_url" class="setImdText" style="width:411px" value="<?=$slide['pic_url']?>" readonly> <input type="button" class="btn btn-info setImdBtn" style='margin-top:-8px' value="选择图片">&nbsp;<a class="btn btn-warning  picViews" <?=$slide['pic_url'] ? '' : 'disabled title="暂不可用"'?> url="<?=$slide['pic_url'] ? transUrl($slide['pic_url']) : ''?>" style='margin-top:-8px'>查看</a></div></p>
						<p class="setLink">跳转链接：<textarea name="click_url" type='text' class="" style="margin:-20px 0 0 70px;width:575px;height:100px"><?=$slide['click_url']?></textarea></p>
						<input type="hidden" value="1" name="dosubmit" />
						<input type="hidden" value="<?=I('get.conid')?>" name="conid" />
						<input type="hidden" value="<?=I('get.slide')?>" name="slide_id" />
						
					</form>
				</div>
				<div class="btn-toolbar">
				    <button class="btn btn-primary" id="btn-save" style="margin-left:71px"><i class="icon-save"></i> 保存</button>
				  <div class="btn-group">
				  </div>
				</div>
			</div>
		</div>
	</div>
</div>
<script>
$(function(){
	$('.setImdBtn').click(function(){
		$('#setImd').selfups();
	});
	$('#btn-save').click(function(){
		if(!($('.checkname').val())){
			showmsg('幻灯名称不能为空');
			return false;
		}else{
			setBtn($('#btn-save'));
			$('#formid').submit();
		}
	});
})
</script>